﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace Cstudy.BLL
{
    public class resources
    {
        public bool AddRescources(MODEL.resources rescource)
        {
            return new DAL.resources().AddRescources(rescource);
        }

        public bool DeleteRescource(int resid)
        {
            return new DAL.resources().DeleteRescource(resid);
        }

        public bool UpdateRescoures(MODEL.resources rescource)
        {
            return new DAL.resources().UpdateRescoures(rescource);
        }

        public DataSet SearchRescources(string keyword)
        {
            return new DAL.resources().SearchRescources(keyword);
        }

        public DataSet SelectResources()
        {
            return new DAL.resources().SelectResources();
        }

        public DataSet SelectResourcesByClassID(int classid)
        {
            return new DAL.resources().SelectResourcesByClassID(classid);
        }
    }
}
